libxl: fix vfb related assertion problem when starting pv-domU
authorRonny Hegewald <ronny.hegewald@online.de>
Tue, 13 Nov 2012 11:19:17 +0000 (11:19 +0000)
committerRonny Hegewald <ronny.hegewald@online.de>
Tue, 13 Nov 2012 11:19:17 +0000 (11:19 +0000)
commit9b223b2f098261f3d483c3447d22be5d7069c314
tree307bd35481b74a588a4b35fd600241ff898e8282
parentb918dce5bb2a665a34ff893a9df5392fb8ea429d
libxl: fix vfb related assertion problem when starting pv-domU

When a config-file for a pv-domU has a vfb section with a vnc=0
option then a "xl create" for that domU crashes with the message

xl: libxl.c:252: libxl_defbool_val: Assertion `!libxl_defbool_is_default(db)'
failed.

and the domU hangs early in the start.

This patch fixes the cause of the assertion and let the domU start
normally.

This problem exists since xen 4.2.

Signed-off-by: Ronny Hegewald <Ronny.Hegewald@online.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c